from utils.app.flutter_Util import flutter_Util
import utils.app.allure_step_cellphone as step
import pytest
import logging
import allure
from time import sleep


@pytest.fixture(scope='module', autouse=True)
def flutter_fixture():
    flutter_util = flutter_Util('com.qingfengche.flutter_freight_driver', '.MainActivity')
    yield flutter_util
    sleep(3)


class TestFlow01_Application:

    @allure.title("司机端登录测试")
    @allure.story("进行司机端登录测试")
    def test01_login(self, flutter_fixture):
        flutter_fixture.locator(xpath='//*[@text="请输入11位手机号码"]').send_keys('18173378353')
